package moon.search.query.operator;

import java.util.ArrayList;
import java.util.List;

public class Intersection<E> {

	public List<E> operate(List<E> l1, List<E> l2) {
		List<E> result = new ArrayList<E>();
		
		for (E e : l1){
			if (l2.contains(e)){
				result.add(e);
			}
		}
		return result;
	}	
	
}
